# coding: utf-8
# walk でファイル探索
# @ref   http://www.python.jp/doc/2.4/lib/node701.html
#        http://www.geocities.jp/m_hiroi/light/pytk03.html
#        http://stkity.blogspot.com/2011/05/pythongui.html

import os
import tkinter

# ================================================================
# 
# ================================================================
def printHello():
    print("Hello, world!")

# ================================================================
# main時のtest
# ================================================================
def main():
    root = tkinter.Tk()
    
    frame = tkinter.Frame(root)
    frame.pack()
    
    button = tkinter.Button(frame, text="Quit", fg="red", command=frame.quit)
    button.pack(side=tkinter.LEFT)
    
    hello_button = tkinter.Button(frame, text="Hello", command=printHello)
    hello_button.pack(side=tkinter.LEFT)
    
    frame.mainloop()
    root.destroy()

# メイン時
if __name__ == '__main__': main()



